package com.sunny.shop.repository;

import com.sunny.shop.model.Vaccination;
import com.sunny.shop.model.Vaccine;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface VaccinationRepository extends JpaRepository<Vaccination, Long> {
    Vaccination findOneByVaccineIdAndUid(Long vaccinae_id,Long uid);
    List<Vaccination> findAllByStatusAndUid(Integer status, Long uid);
}
